<include file="Public:css_" />
</head>
<body>
	<div id="exchange">
		<div>
			<div class="top">
				<span class="pdlr br1">总积分</span><span class="pdlr">213371</span><span class="pdlr ufr">查看积分规则></span>
			</div>
		</div>
		<div class="pd">
			<div class="busi-desc bgw bd1">
                <img src="{$Think.config.IMG_PATH}{$data.imgurl}" class="img-logo">
                <div class="bd">
                    <div class="pdtb3 ulev5">{$data.title}</div>
                    <div class="pdtb3 c2 ulev1">需花费：<font class="c1">{$data.score}积分</font><span class="c2">数量：1</span></div>
                </div>
			</div>
		</div>
		<div class="pd">
			<div class="pay">结算<img src="{$Think.config.static_path}images/next.png"></div>
			<a href="javascript:history.go(-1)"><div class="cancel">取消</div></a>
		</div>
		<div class="pay-fade hide">
		    <div class='ub ub-ver ub-ac ub-pc pdt2'>
		    	<img src="{$Think.config.static_path}images/close-w.png" class="close-w">
		    	<img src="{$Think.config.static_path}images/false.png" style="width:2.5em">
		    	<div class="c4 pdt1 ulev5">兑换失败</div>
		    	<div class="c2 pdt1 ulev1">产品已全部兑换完</div>
		    	<a href="index.html"><div class="c1 ulev1 uinn2 uba uc-a  mt2">查看其它产品→</div></a>
		    </div>
	    </div>
	</div>
<input type="hidden" id="id" value="{$id}">
</body>
<include file="Public:js_" />
<script type="text/javascript">
	$(".pay").click(function() {
		$.getJSON('__URL__/doExchange', {
			id:$("#id").val(),
		},function(json) {
			if(json.status >0 ){
				location.href="__URL__/showcode?oid="+json.oid;
			}else{
				Util.info(json.info);
			}
		});
	})
	$(".close-w").click(function() {
		alert(1);
		$(".pay-fade").addClass("hide")
	})
	

</script>
</html>